import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/views/index'
import Login from '@/views/login'
import ShopConfig from '@/views/shop/index.js';
import Invesrors from '@/views/investors/index.js';
import physical from '@/views/physical/index.js';

import Settings from '@/views/settings/index.js';
import PlusShop from '@/views/plus/index.js';
import Intergral from '@/views/integral/index.js';
import Erp from '@/views/erp/index.js';
import Reports from '@/views/reports/index.js';
import shopPage from '@/views/shopPage/index.js';

Vue.use(Router)
export default new Router({
	routes: [{
		path: '/',
		name: 'login',
		component: Login
	}, {
		path: "/",
		name: "main",
		component: Main,
		children: [ShopConfig, Invesrors, physical, Settings, PlusShop, Intergral, Erp, Reports, shopPage]
	}]
})